/**
 * SequenceItemViewController
 * @Chunning.Xu
 * 2011 Nov 23, 2011 9:49:57 PM
 **/
package com.lux.product.controllers
{
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	
	public class SequenceItemViewController extends LuxViewController
	{
		//START.
		
		public var txtNum:TextField;
		public var txtTitle:TextField;
		public var arrow:DisplayObject;
		
		public function SequenceItemViewController()
		{
			super(new SequenceItemViewUI);
			
			txtNum.autoSize = TextFieldAutoSize.CENTER;
			txtTitle.autoSize = TextFieldAutoSize.LEFT;
		}
		
		public function setNumAndTitle(num:int,title:String):void
		{
			txtNum.text = num.toString();
			txtTitle.text = title;
			arrow.x = txtTitle.x + txtTitle.width;
		}
		
		public function hideArrow():void
		{
			arrow.visible = false;
		}
		
		//END
	}
}